<style type="text/css">
    .angucomplete-dropdown {
        overflow-y: auto;
        max-height: 200px;
    }
    
    div .btn {
        float: right;
        outline: none;
        background: #39A0ED;
        border-radius: 16px;
        height: 32px;
        border: none;
        color: #fff;
        margin-right: 14px;
        line-height: 32px;
        cursor: pointer;
    }
    
    div .btn:hover {
        background: #078ef2;
    }
    
    .savetext {
        padding: 0 28px;
    }
    
    .addtext {
        padding: 0 18px;
    }
    
    #div1 {
        width: 100%;
        height: 500px;
    }
    
    .ui.modal .center>.button {
        margin-left: 0px !important;
    }
</style>
<!--内容区开始-->
<div class="cont">
    <!--二级标题-->
    <div class="position">
        <img alt="位置图标" src="dist/images/position.png" />风控管理&gt;退款处理
        <a ng-click="openDetail()" ng-hide="$needClientCache" title="打开新窗口查看"><i class="large External icon"></i></a>
    </div>
    <!--查看方式-->
    <div class="mybackground">
        <div class="cont_fr_top">
            <div class="menus_top">
                <div class="menus_l">处理状态：</div>
                <ul id="nav">
                    <li>
                        <a ng-click="search_param.status=-1">全部</a>
                    </li>
                    <li class="selected">
                        <a ng-click="search_param.status=0">待处理</a>
                    </li>
                    <li>
                        <a ng-click="search_param.status=20">申请失败</a>
                    </li>
                    <li>
                        <a ng-click="search_param.status=30">风控确认</a>
                    </li>
                    <li>
                        <a ng-click="search_param.status=31">退款失败</a>
                    </li>
                    <li>
                        <a ng-click="search_param.status=40">退款成功</a>
                    </li>
                    <li>
                        <a ng-click="search_param.status=10">已取消</a>
                    </li>
                </ul>
                <div class="cont_fr_btn">
                    <div class="fr">
                        <button class="cont_f_btn3" ng-click="add_popup()"><i class="add icon"></i>添加</button>
                    </div>
                </div>
            </div>
            <div class="menus">
                <div class="menus_con">
                    <div class="ui form">
                        <div class="menus">
                            <div class="menus_con">
                                <div class="ui form">
                                    <div class="four fields">
                                        <div class="inline field">
                                            <label>退款编号</label>
                                            <input type="text" ng-model="search_param.refund_id" style="width:160px;" placeholder="退款编号" ng-keyup="$event.keyCode == 13 && search()">
                                        </div>
                                        <div class="inline field">
                                            <label>综合查询</label>
                                            <input type="text" ng-model="search_param.userphone" style="width:160px;margin-left: 1em;" placeholder="昵称/电话号码" ng-keyup="$event.keyCode == 13 && search()">
                                        </div>
                                        <div class="inline field">
                                            <label>业务人员</label>
                                            <input type="text" ng-model="search_param.sales" style="width:160px;" placeholder="员工姓名" ng-keyup="$event.keyCode == 13 && search()">
                                        </div>
                                    </div>
                                    <div class="fields" style="margin-left: 4.5em;">
                                        <div class="four wide field">
                                            <button class="search_btn" ng-click="search()">查询</button>
                                            <button class="clear_btn" ng-click="export_popup()">导出</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="menus_table">
        <!--表格-->
        <table class="ui yellow celled striped table">
            <thead>
                <tr>
                    <th>退款编号</th>
                    <th style="width: 120px;">申请时间</th>
                    <th>客户姓名</th>
                    <th style="width: 110px;">电话</th>
                    <th>业务员</th>
                    <th>经理</th>
                    <th>团队</th>
                    <th style="width: 120px;">退款金额</th>
                    <th>原因</th>
                    <th>状态</th>
                    <th style="width: 140px; text-align: center;">操作</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="vitem in refundlist">
                    <td>{{::vitem.refund_id}}</td>
                    <td ng-attr-title="{{::vitem.create_time|limitTo:10}}">{{::vitem.create_time|limitTo:10}}</td>
                    <td ng-attr-title="{{::vitem.customer_name}}">
                        <div float_layer customer-id='vitem.customer_id' show-name="vitem.nickname"></div>
                    </td>
                    <td ng-attr-title="{{vitem.show_phone}}">{{::vitem.show_phone}}</td>
                    <td ng-attr-title="{{::vitem.sales_name}}">{{::vitem.sales_name}}</td>
                    <td ng-attr-title="{{::vitem.manager_name}}">{{::vitem.manager_name}}</td>
                    <td ng-attr-title="{{::vitem.company}}">{{::vitem.company}}</td>
                    <td style="text-align: right;padding-right:1em;">
                        <b>{{::vitem.pay_mount | number:2}}</b>
                    </td>
                    <td ng-attr-title="{{::vitem.reason}}" class="ellipsis">{{::vitem.reason}}</td>
                    <td>
                        <span refund-status status="{{::vitem.status}}"></span>
                    </td>
                    <td style="text-align: center;">
                        <a ng-if="vitem.status==0 || vitem.status==30 || vitem.status==31" ng-click="edit_popup( vitem )">编辑</a>
                        <a ng-click="confirm_popup( vitem )" ng-if="vitem.status==0 || vitem.status==31">审核</a>
                        <a ng-click="cancle_popup( vitem )" ng-if="vitem.status==0 || vitem.status==30 || vitem.status==31">取消</a>
                        <a ng-click="view_popup( vitem )" ng-if="vitem.status==10 || vitem.status==20 || vitem.status==40">查看</a>
                        <!--<a ng-if="vitem.status!=1" ng-click="remove_popup( vitem )">删除</a>-->
                    </td>
                </tr>
                <tr ng-show="(refundlist && refundlist.length == 0) ||(!refundlist)">
                    <td colspan="11" style="color:red;">
                        <p style="text-align:center;">还没有找到数据~~~</p>
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="ui pagination menu fr" ng-show="refundpage.pageAll > 1" class="ui borderless pagination menu" jspagination page-object="refundpage" page-func="getDataList">
        </div>
    </div>
</div>
<!--内容区结束-->

<!-- 新增退款申请 -->
<div class="ui add modal">
    <i class="close icon"></i>
    <div class="header_h4">添加退款申请</div>
    <div class="content">
        <form class="popup add form">
            <div class="ui form">
                <div class="fields">
                    <div class="five wide field required">
                        <label class="label_fl">客户信息</label>
                        <input type="hidden" name="add_data[userphone]" id="add_data_userphone1" />
                        <div id="add_data_userphone2" style="width:160px; float: left" angucomplete-alt placeholder="客户姓名" pause="10" minlength="1" selected-object="selectCustomer" input-changed="customerInputChanged" local-data="customer" search-fields="nickname,phone" title-field="nickname"
                            minlength="0" input-class="form-control form-control-small">
                        </div>
                    </div>
                    <div class="five wide field required">
                        <label class="label_fl">客户电话</label>
                        <input type="text" style="width:160px" minlength="11" maxlength="11" id="add_data_phone" name="add_data[phone]" ng-model="add_data.phone" placeholder="客户电话号码">
                    </div>
                    <div class="six wide field required">
                        <label class="label_fl">退款原因</label>
                        <select class="more ui dropdown fl" style="width:160px" ng-model="add_data.reason" name="add_data[reason]" ng-options="item.name for item in pageOption.reasons">
                            <option value="">客户退款原因</option>
                        </select>
                    </div>
                    <!--<div class="six wide field required">
                        <label class="label_fl">退款金额</label>
                        <input type="text" style="width:160px" num-format ng-model="add_data.pay_mount" name="add_data[pay_mount]" placeholder="退款金额">
                    </div>-->
                </div>
                <div class="fields">
                    <div class="ten wide field required">
                        <label class="label_fl">外部投诉</label>
                        <select class="more ui dropdown fl" style="width:160px" ng-model="add_data.waibu_tousu" name="add_data[waibu]" ng-options="item.name for item in pageOption.waibu">
                            <option value="">外部投诉情况</option>
                        </select>
                    </div>
                </div>
                <div class="sixteen wide field">
                    <label class="label_fl">退款备注说明</label>
                    <textarea rows="2" type="text" ng-model="add_data.remark"></textarea>
                </div>
                <div class="ui segment" style="padding-bottom: 20px;" ng-if="usercontracts&&usercontracts.length>0">
                    <div class="field">
                        <label>客户流水退款信息</label>
                    </div>
                    <table class="ui yellow striped celled table" style="min-width:400px;">
                        <thead>
                            <tr>
                                <th style="width:8%">选择</th>
                                <th style="width:12%">付款流水号</th>
                                <th style="width:120px;">付款时间</th>
                                <th style="width:12%">业务人员</th>
                                <th style="width:12%">业务经理</th>
                                <th style="width:12%">所属团队</th>
                                <th style="width:12%;text-align: right;margin-right:1em;">付款金额</th>
                                <th style="width:14%;text-align: right;margin-right:1em;">历史退款</th>
                                <th style="width:14%;text-align: right;margin-right:1em;">本次退款金额</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr ng-repeat="vitem in usercontracts ">
                                <td>
                                    <!--<input data-value={{$index}} type="radio" name="index">-->
                                    <input type="checkbox" data-value={{$index}} name="example" ng-click="selectContract($index)">
                                </td>
                                <td>{{::vitem.pay_id}}</td>
                                <td ng-attr-title="{{::vitem.pay_time|limitTo:10}}">{{::vitem.pay_time|limitTo:10}}</td>
                                <td ng-attr-title="{{::vitem.sales_name}}">{{::vitem.sales_name}}</td>
                                <td ng-attr-title="{{::vitem.manager_name}}">{{::vitem.manager_name}}</td>
                                <td ng-attr-title="{{::vitem.company_name}}">{{::vitem.company_name}}</td>
                                <td ng-attr-title="{{::vitem.pay_mount|number:2}}" style="text-align: right;margin-right:1em;">{{::vitem.pay_mount|number:2}}</td>
                                <td ng-attr-title="{{::vitem.refunded|number:2}}" tyle="text-align: right;margin-right:1em;">{{::vitem.refunded|number:2}}</td>
                                <td>
                                    <div>
                                        <input type="text" num-format ng-readonly="vitem.is_refund" placeholder="退款金额" ng-model="vitem.will_refund" ng-blur="changeRefund($index)">
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <div class="ui yellow message" ng-if=" !usercontracts||usercontracts.length==0 ">
                        该客户暂时没有流水记录!
                    </div>
                    <div class="ui yellow message" ng-if="arrPayId.length > 0">
                        您选中了{{arrPayId.length}}条流水，退款总额{{refund_mount|number: 2}}元。
                    </div>
                </div>
                <div class="ui" style="margin-top: 2em;">
                    <div class="field">
                        <label>退款财务信息</label>
                    </div>
                    <div class="fields">
                        <div class="five wide field required">
                            <label class="label_fl">开户姓名</label>
                            <input type="text" style="width: 160px;" name="add_data[payee_name]" ng-model="add_data.payee_name" placeholder="开户姓名">
                        </div>
                        <div class="five wide field required">
                            <label class="label_fl">财务账号</label>
                            <input type="text" style="width: 160px;" ng-model="add_data.payee_account" name="add_data[payee_account]" placeholder="支付账号">
                        </div>
                        <div class="six wide field required">
                            <label class="label_fl">开户行信息</label>
                            <input type="text" style="width: 160px;" ng-model="add_data.payee_way" name="add_data[payee_way]" placeholder="客户开户银行名称">
                        </div>
                    </div>
                </div>
                <div class="ui" style="margin-top: 2em;">
                    <div class="field">
                        <label>邮寄回收状态</label>
                    </div>
                    <div class="fields">
                        <div class="five wide field required">
                            <label class="label_fl">合同状态</label>
                            <select class="more ui dropdown fl" ng-model="add_data.contract_status" name="add_data[contract_status]" style="width: 160px;">
                            <option value="">合同状态</option>
                            <option value="0" >没有签订合同</option>
                            <option value="1">签订合同没有收回</option>
                            <option value="2">合同已经收回</option>
                        </select>
                        </div>
                        <div class="five wide field required">
                            <label class="label_fl">发票状态</label>
                            <select class="more ui dropdown fl" ng-model="add_data.invoice_status" name="add_data[invoice_status]" style="width: 160px;">
                            <option value="">发票状态</option>
                            <option value="0" >没有开发票</option>
                            <option value="1">发票没有收回</option>
                            <option value="2">发票已经收回</option>
                        </select>
                        </div>
                        <div class="six field required">
                            <label class="label_fl">退款协议</label>
                            <select class="more ui dropdown fl" ng-model="add_data.sign_status" name="add_data[sign_status]" style="width: 160px;">
                                <option value="">退款协议</option>
                                <option value="0" >未处理</option>
                                <option value="3">签订完成</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
        </form>
        <form class="popup delivery1 form">
            <div class="ui form">
                <div class="ui" style="margin-top: 2em;">
                    <div class="field">
                        <label>退款协议邮寄信息</label>
                    </div>
                    <div class="field">
                        <div class="ui form">
                            <table class="ui celled table">
                                <thead>
                                    <tr>
                                        <th colspan="3">新增退款协议邮寄信息</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>
                                            <div class="inline field required">
                                                <label>收件人</label>
                                                <input type="text" maxlength="20" style="width: 160px;margin-left: 1em;" name="delivery[recipients]" ng-model="delivery.recipients" placeholder="收件人">
                                            </div>
                                        </td>
                                        <td>
                                            <div class="inline field required">
                                                <label>手机号</label>
                                                <input type="text" style="width: 160px;margin-left: 1em;" ng-model="delivery.phone" name="delivery[delivery_phone]" placeholder="手机号">
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <div class="inline field required">
                                                <label>收件地址</label>
                                                <input type="text" style="width: 450px;" name="delivery[address]" ng-model="delivery.address" placeholder="收件地址">
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <div class="field">
                                                <label>邮寄备注说明</label>
                                                <textarea rows="2" type="text" name="delivery[delivery_remark]" ng-model="delivery.remark"></textarea>
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="actions" style="text-align: center;">
        <button class="ui green button positive">确认</button>
        <button class="ui grey button negative">取消</button>
    </div>
</div>
<!-- 新增退款申请-->

<!-- 编辑退款申请信息 -->
<div class="ui edit modal">
    <i class="close icon"></i>
    <div class="header_h4">退款申请信息编辑</div>
    <div class="content">
        <form action="#" class="popup edit form">
            <div class="ui form">
                <div class="fields">
                    <div class="five wide field">
                        <label class="label_fl">客户姓名：</label>
                        <div style="padding-left: 1.5em;padding-top: 0.5em;">{{edit_data.customer_name}}</div>
                    </div>
                    <div class="five wide field">
                        <label class="label_fl">客户电话：</label>
                        <div style="padding-left: 1.5em;padding-top: 0.5em;">{{edit_data.customer_phone}}</div>
                    </div>
                    <div class="six wide field required">
                        <label class="label_fl">退款原因</label>
                        <select class="more ui dropdown fl" style="width: 160px;" ng-model="edit_data.reason" name="edit_data[reason]" ng-options="item.name for item in pageOption.reasons">
                        </select>
                    </div>
                </div>
                <div class="fields">
                    <div class="ten wide field required">
                        <label class="label_fl">外部投诉</label>
                        <select class="more ui dropdown fl" style="width:160px" ng-model="edit_data.waibu_tousu" name="edit_data[waibu]" ng-options="item.name for item in pageOption.waibu">
                        </select>
                    </div>
                </div>
                <div class="sixteen wide field">
                    <label class="label_fl">退款备注说明</label>
                    <textarea rows="2" type="text" ng-model="edit_data.remark"></textarea>
                </div>
                <div class="ui segment" style="padding-bottom: 20px;" ng-if="refundArr&&refundArr.length>0">
                    <div class="field">
                        <label>客户流水退款信息</label>
                    </div>
                    <table class="ui yellow striped celled table" style="min-width:400px;">
                        <thead>
                            <tr>
                                <th style="width:12%">付款流水号</th>
                                <th style="width:12%">付款时间</th>
                                <th style="width:12%">业务人员</th>
                                <th style="width:12%">业务经理</th>
                                <th style="width:12%">所属团队</th>
                                <th style="width:12%;text-align: right;margin-right:1em;">付款金额</th>
                                <th style="width:14%;text-align: right;margin-right:1em;">历史退款</th>
                                <th style="width:14%;text-align: right;margin-right:1em;">本次退款金额</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr ng-repeat="vitem in refundArr ">
                                <td>{{::vitem.pay_id}}</td>
                                <td ng-attr-title="{{::vitem.pay_time|limitTo:10}}">{{::vitem.pay_time|limitTo:10}}</td>
                                <td ng-attr-title="{{::vitem.sales_name}}">{{::vitem.sales_name}}</td>
                                <td ng-attr-title="{{::vitem.manager_name}}">{{::vitem.manager_name}}</td>
                                <td ng-attr-title="{{::vitem.company_name}}">{{::vitem.company_name}}</td>
                                <td ng-attr-title="{{::vitem.pay_mount|number:2}}" tyle="text-align: right;margin-right:1em;">{{::vitem.pay_mount|number:2}}</td>
                                <td ng-attr-title="{{::vitem.pay_refund_mount|number:2}}" tyle="text-align: right;margin-right:1em;">{{::vitem.pay_refund_mount|number:2}}</td>
                                <td>
                                    <div>
                                        <input type="text" num-format placeholder="退款金额" ng-model="vitem.refund_mount" ng-blur="changeRefundOfUpDate($index)">
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <div class="ui yellow message" ng-if=" !usercontracts||usercontracts.length==0 ">
                        该客户暂时没有流水记录!
                    </div>
                    <div class="ui yellow message" ng-if="refundArr.length > 0">
                        您选中了{{refundArr.length}}条流水，退款总额{{refund_mount|number: 2}}元。
                    </div>
                </div>
                <div class="ui">
                    <div class="field" style="margin-top: 2em;">
                        <label>客户退款财务信息</label>
                    </div>
                    <div class="fields">
                        <div class="five wide field required">
                            <label class="label_fl">开户姓名</label>
                            <input type="text" style="width: 160px;" name="edit_data[payee_name]" ng-model="edit_data.payee_name" placeholder="开户姓名">
                        </div>
                        <div class="five wide field required">
                            <label class="label_fl">财务账号</label>
                            <input type="text" style="width: 160px;" ng-model="edit_data.payee_account" name="edit_data[payee_account]" placeholder="支付账号">
                        </div>
                        <div class="six wide field required">
                            <label class="label_fl">开户行信息</label>
                            <input type="text" style="width: 160px;" ng-model="edit_data.payee_way" name="edit_data[payee_way]" placeholder="开户银行名称">
                        </div>
                    </div>
                </div>
                <div class="ui" style="margin-top: 2em;">
                    <div class="field">
                        <label>邮寄回收状态</label>
                    </div>
                    <div class="fields">
                        <div class="five wide field required">
                            <label class="label_fl">合同状态</label>
                            <select class="more ui dropdown fl" ng-model="edit_data.contract_recycle" name="edit_data[contract_status]" style="width: 160px;">
                            <option value="">合同状态</option>
                            <option value="0" >没有签订合同</option>
                            <option value="1">签订合同没有收回</option>
                            <option value="2">合同已经收回</option>
                        </select>
                        </div>
                        <div class="five wide field required">
                            <label class="label_fl">发票状态</label>
                            <select class="more ui dropdown fl" ng-model="edit_data.invoice_recycle" name="edit_data[invoice_status]" style="width: 160px;">
                            <option value="">合同状态</option>
                            <option value="0" >没有开发票</option>
                            <option value="1">发票没有收回</option>
                            <option value="2">发票已经收回</option>
                        </select>
                        </div>
                        <div class="six wide field required">
                            <label class="label_fl">退款协议</label>
                            <select class="more ui dropdown fl" ng-model="edit_data.sign_status" name="edit_data[sign_status]" style="width: 160px;">
                            <option value="">退款协议</option>
                            <option value="0" >未处理</option>
                            <option value="3">签订完成</option>
                        </select>
                        </div>
                    </div>
                </div>
            </div>
        </form>
        <form action="#" class="popup delivery2 form">
            <div class="ui form">
                <div class="ui" style="margin-top: 2em;">
                    <div class="field">
                        <label>退款协议邮寄信息</label>
                    </div>
                    <div class="field">
                        <div class="ui form">
                            <table class="ui celled table">
                                <thead>
                                    <tr>
                                        <th colspan="3">新增退款协议邮寄信息</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>
                                            <div class="inline field required">
                                                <label>收件人</label>
                                                <input type="text" maxlength="20" style="width: 160px;margin-left: 1em;" name="delivery[recipients]" ng-model="delivery.recipients" placeholder="收件人">
                                            </div>
                                        </td>
                                        <td>
                                            <div class="inline field required">
                                                <label>手机号</label>
                                                <input type="text" style="width: 160px;margin-left: 1em;" ng-model="delivery.phone" name="delivery[delivery_phone]" placeholder="手机号">
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <div class="inline field">
                                                <label>收件地址</label>
                                                <input type="text" style="width: 450px;" name="delivery[address]" ng-model="delivery.address" placeholder="收件地址">
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <div class="field">
                                                <label>邮寄备注说明</label>
                                                <textarea rows="2" type="text" name="delivery[delivery_remark]" ng-model="delivery.remark"></textarea>
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="actions" style="text-align: center;">
        <button class="ui green button positive">确认</button>
        <button class="ui grey button negative">取消</button>
    </div>
</div>
<!-- 编辑退款申请信息 -->

<!-- 退款申请处理 -->
<div class="ui confirm modal">
    <i class="close icon"></i>
    <div class="header_h4">退款申请处理</div>
    <div class="content">
        <form action="#" class="popup confirm form">
            <div class="ui form">
                <div class="fields">
                    <div class="five wide field">
                        <label class="label_fl">客户姓名：</label>
                        <div style="padding-left: 1.5em;padding-top: 0.5em;">{{edit_data.customer_name}}</div>
                    </div>
                    <div class="five wide field">
                        <label class="label_fl">客户电话：</label>
                        <div style="padding-left: 1.5em;padding-top: 0.5em;">{{edit_data.customer_phone}}</div>
                    </div>
                    <div class="six wide field required">
                        <label class="label_fl">退款原因</label>
                        <select disabled class="more ui dropdown fl" style="width: 160px;" ng-model="edit_data.reason" name="edit_data[reason]" ng-options="item.name for item in pageOption.reasons">
                        </select>
                    </div>
                </div>
                <div class="fields">
                    <div class="ten wide field required">
                        <label class="label_fl">外部投诉</label>
                        <select disabled class="more ui dropdown fl" style="width:160px" ng-model="edit_data.waibu_tousu" name="edit_data[waibu]" ng-options="item.name for item in pageOption.waibu">
                        </select>
                    </div>
                </div>
                <div class="sixteen wide field">
                    <label class="label_fl">退款备注说明</label>
                    <textarea rows="2" type="text" ng-model="edit_data.remark"></textarea>
                </div>
                <div class="ui segment" style="padding-bottom: 20px;" ng-if="refundArr&&refundArr.length>0">
                    <div class="field">
                        <label>客户流水退款信息</label>
                    </div>
                    <table class="ui yellow striped celled table" style="min-width:400px;">
                        <thead>
                            <tr>
                                <th style="width:12%">付款流水号</th>
                                <th style="width:12%">付款时间</th>
                                <th style="width:12%">业务人员</th>
                                <th style="width:12%">业务经理</th>
                                <th style="width:12%">所属团队</th>
                                <th style="width:12%;text-align: right;margin-right:1em;">付款金额</th>
                                <th style="width:14%;text-align: right;margin-right:1em;">历史退款</th>
                                <th style="width:14%;text-align: right;margin-right:1em;">本次退款金额</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr ng-repeat="vitem in refundArr ">
                                <td>{{::vitem.pay_id}}</td>
                                <td ng-attr-title="{{::vitem.pay_time|limitTo:10}}">{{::vitem.pay_time|limitTo:10}}</td>
                                <td ng-attr-title="{{::vitem.sales_name}}">{{::vitem.sales_name}}</td>
                                <td ng-attr-title="{{::vitem.manager_name}}">{{::vitem.manager_name}}</td>
                                <td ng-attr-title="{{::vitem.company_name}}">{{::vitem.company_name}}</td>
                                <td ng-attr-title="{{::vitem.pay_mount|number:2}}" tyle="text-align: right;margin-right:1em;">{{::vitem.pay_mount|number:2}}</td>
                                <td ng-attr-title="{{::vitem.pay_refund_mount|number:2}}" tyle="text-align: right;margin-right:1em;">{{::vitem.pay_refund_mount|number:2}}</td>
                                <td>
                                    <div>
                                        <input type="text" num-format placeholder="退款金额" readonly ng-model="vitem.refund_mount">
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <div class="ui yellow message" ng-if="!refundArr||refundArr.length==0">
                        该客户暂时没有流水记录!
                    </div>
                    <div class="ui yellow message" ng-if="refundArr.length > 0">
                        您选中了{{refundArr.length}}条流水，退款总额{{refund_mount|number: 2}}元。
                    </div>
                </div>
                <div class="ui">
                    <div class="field" style="margin-top: 2em;">
                        <label>客户退款财务信息</label>
                    </div>
                    <div class="fields">
                        <div class="five wide field required">
                            <label class="label_fl">开户姓名</label>
                            <input type="text" readonly style="width: 160px;" maxlength="20" name="edit_data[payee_name]" ng-model="edit_data.payee_name" placeholder="开户姓名">
                        </div>
                        <div class="five wide field required">
                            <label class="label_fl">财务账号</label>
                            <input type="text" readonly style="width: 160px;" ng-model="edit_data.payee_account" name="edit_data[payee_account]" minlength="3" placeholder="支付账号">
                        </div>
                        <div class="six wide field required">
                            <label class="label_fl">开户行信息</label>
                            <input type="text" readonly style="width: 160px;" ng-model="edit_data.payee_way" name="edit_data[payee_way]" placeholder="开户银行名称">
                        </div>
                    </div>
                </div>
                <div class="ui" style="margin-top: 2em;">
                    <div class="field">
                        <label>邮寄回收状态</label>
                    </div>
                    <div class="fields">
                        <div class="five wide field required">
                            <label class="label_fl">合同状态</label>
                            <select disabled class="more ui dropdown fl" ng-model="edit_data.contract_recycle" name="edit_data[contract_status]" style="width: 160px;">
                            <option value="">合同状态</option>
                            <option value="0" >没有签订合同</option>
                            <option value="1">签订合同没有收回</option>
                            <option value="2">合同已经收回</option>
                        </select>
                        </div>
                        <div class="five wide field required">
                            <label class="label_fl">发票状态</label>
                            <select disabled class="more ui dropdown fl" ng-model="edit_data.invoice_recycle" name="edit_data[invoice_status]" style="width: 160px;">
                            <option value="">合同状态</option>
                            <option value="0" >没有开发票</option>
                            <option value="1">发票没有收回</option>
                            <option value="2">发票已经收回</option>
                        </select>
                        </div>
                    </div>
                </div>
                <div class="ui" style="margin-top: 2em;">
                    <div class="field">
                        <label>退款协议邮寄信息</label>
                    </div>
                    <div class="field">
                        <div class="ui form">
                            <table class="ui celled table">
                                <thead>
                                    <tr>
                                        <th colspan="3">新增退款协议邮寄信息</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>
                                            <div class="inline field required">
                                                <label>收件人</label>
                                                <input type="text" readonly maxlength="20" style="width: 160px;margin-left: 1em;" name="delivery[recipients]" ng-model="delivery.recipients" placeholder="收件人">
                                            </div>
                                        </td>
                                        <td>
                                            <div class="inline field required">
                                                <label>手机号</label>
                                                <input type="text" readonly style="width: 160px;margin-left: 1em;" ng-model="delivery.phone" name="delivery[delivery_phone]" placeholder="手机号">
                                            </div>
                                        </td>
                                        <td>
                                            <div class="inline field required">
                                                <label class="label_fl">退款协议</label>
                                                <select disabled class="more ui dropdown fl" ng-model="edit_data.sign_status" name="edit_data[sign_status]" style="width: 160px;">
                                                    <option value="">退款协议</option>
                                                    <option value="0" >未处理</option>
                                                    <option value="3">签订完成</option>
                                                </select>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <div class="inline field required">
                                                <label>收件地址</label>
                                                <input type="text" readonly style="width: 450px;" name="delivery[address]" ng-model="delivery.address" placeholder="收件地址">
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <div class="field">
                                                <label>邮寄备注说明</label>
                                                <textarea rows="2" readonly type="text" name="delivery[delivery_remark]" ng-model="delivery.remark"></textarea>
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="actions" style="text-align: center;">
        <button class="ui green button positive" style="width: 105px;">审核通过</button>
        <button class="ui grey button negative" style="width: 105px;">拒绝通过</button>
    </div>
</div>
<!-- 退款申请处理-->

<!--审核成功之后的编辑-->
<div class="ui editF modal">
    <i class="close icon"></i>
    <div class="header_h4">退款申请信息编辑</div>
    <div class="content">
        <form action="#" class="popup editF form">
            <div class="ui form">
                <div class="fields">
                    <div class="five wide field">
                        <label class="label_fl">客户姓名：</label>
                        <div style="padding-left: 1.5em;padding-top: 0.5em;">{{edit_data.customer_name}}</div>
                    </div>
                    <div class="five wide field">
                        <label class="label_fl">客户电话：</label>
                        <div style="padding-left: 1.5em;padding-top: 0.5em;">{{edit_data.customer_phone}}</div>
                    </div>
                    <div class="six wide field required">
                        <label class="label_fl">退款原因</label>
                        <select disabled class="more ui dropdown fl" style="width: 160px;" ng-model="edit_data.reason" name="edit_data[reason]" ng-options="item.name for item in pageOption.reasons">
                        </select>
                    </div>
                </div>
                <div class="fields">
                    <div class="ten wide field required">
                        <label class="label_fl">外部投诉</label>
                        <select disabled class="more ui dropdown fl" style="width:160px" ng-model="edit_data.waibu_tousu" name="edit_data[waibu]" ng-options="item.name for item in pageOption.waibu">
                        </select>
                    </div>
                </div>
                <div class="sixteen wide field">
                    <label class="label_fl">退款备注说明</label>
                    <textarea rows="2" readonly type="text" ng-model="edit_data.remark"></textarea>
                </div>
                <div class="ui segment" style="padding-bottom: 20px;" ng-if="refundArr&&refundArr.length>0">
                    <div class="field">
                        <label>客户流水退款信息</label>
                    </div>
                    <table class="ui yellow striped celled table" style="min-width:400px;">
                        <thead>
                            <tr>
                                <th style="width:12%">付款流水号</th>
                                <th style="width:12%">付款时间</th>
                                <th style="width:12%">业务人员</th>
                                <th style="width:12%">业务经理</th>
                                <th style="width:12%">所属团队</th>
                                <th style="width:12%;text-align: right;margin-right:1em;">付款金额</th>
                                <th style="width:14%;text-align: right;margin-right:1em;">历史退款</th>
                                <th style="width:14%;text-align: right;margin-right:1em;">本次退款金额</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr ng-repeat="vitem in refundArr ">
                                <td>{{::vitem.pay_id}}</td>
                                <td ng-attr-title="{{::vitem.pay_time|limitTo:10}}">{{::vitem.pay_time|limitTo:10}}</td>
                                <td ng-attr-title="{{::vitem.sales_name}}">{{::vitem.sales_name}}</td>
                                <td ng-attr-title="{{::vitem.manager_name}}">{{::vitem.manager_name}}</td>
                                <td ng-attr-title="{{::vitem.company_name}}">{{::vitem.company_name}}</td>
                                <td ng-attr-title="{{::vitem.pay_mount|number:2}}" style="text-align: right;margin-right:1em;">{{::vitem.pay_mount|number:2}}</td>
                                <td ng-attr-title="{{::vitem.pay_refund_mount|number:2}}" style="text-align: right;margin-right:1em;">{{::vitem.pay_refund_mount|number:2}}</td>
                                <td>
                                    <div>
                                        <input type="text" readonly num-format placeholder="退款金额" ng-model="vitem.refund_mount" ng-blur="changeRefundOfUpDate($index)">
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <div class="ui yellow message" ng-if=" !usercontracts||usercontracts.length==0 ">
                        该客户暂时没有流水记录!
                    </div>
                    <div class="ui yellow message" ng-if="refundArr.length > 0">
                        您选中了{{refundArr.length}}条流水，退款总额{{refund_mount|number: 2}}元。
                    </div>
                </div>
                <div class="ui">
                    <div class="field" style="margin-top: 2em;">
                        <label>客户退款财务信息</label>
                    </div>
                    <div class="fields">
                        <div class="five wide field required">
                            <label class="label_fl">开户姓名</label>
                            <input type="text" style="width: 160px;" readonly maxlength="20" name="edit_data[payee_name]" ng-model="edit_data.payee_name" placeholder="开户姓名">
                        </div>
                        <div class="five wide field required">
                            <label class="label_fl">财务账号</label>
                            <input type="text" style="width: 160px;" readonly ng-model="edit_data.payee_account" name="edit_data[payee_account]" minlength="3" placeholder="支付账号">
                        </div>
                        <div class="six wide field required">
                            <label class="label_fl">开户行信息</label>
                            <input type="text" style="width: 160px;" readonly ng-model="edit_data.payee_way" name="edit_data[payee_way]" placeholder="开户银行名称">
                        </div>
                    </div>
                </div>
                <div class="ui" style="margin-top: 2em;">
                    <div class="field">
                        <label>邮寄回收状态</label>
                    </div>
                    <div class="fields">
                        <div class="five wide field required">
                            <label class="label_fl">合同状态</label>
                            <select disabled class="more ui dropdown fl" ng-model="edit_data.contract_recycle" name="edit_data[contract_status]" style="width: 160px;">
                            <option value="">合同状态</option>
                            <option value="0" >没有签订合同</option>
                            <option value="1">签订合同没有收回</option>
                            <option value="2">合同已经收回</option>
                        </select>
                        </div>
                        <div class="five wide field required">
                            <label class="label_fl">发票状态</label>
                            <select disabled class="more ui dropdown fl" ng-model="edit_data.invoice_recycle" name="edit_data[invoice_status]" style="width: 160px;">
                            <option value="">合同状态</option>
                            <option value="0" >没有开发票</option>
                            <option value="1">发票没有收回</option>
                            <option value="2">发票已经收回</option>
                        </select>
                        </div>
                        <div class="six wide field required">
                            <label class="label_fl">退款协议</label>
                            <select class="more ui dropdown fl" ng-model="edit_data.sign_status" name="edit_data[sign_status]" style="width: 160px;">
                            <option value="">退款协议</option>
                            <option value="0" >未处理</option>
                            <option value="3">签订完成</option>
                        </select>
                        </div>
                    </div>
                </div>
            </div>
        </form>
        <form action="#" class="popup deliveryF form">
            <div class="ui form">
                <div class="ui" style="margin-top: 2em;">
                    <div class="field">
                        <label>退款协议邮寄信息</label>
                    </div>
                    <div class="inline field" style="margin-bottom: 60px;text-align: center;">
                        <div ng-show="!isAddUser" ng-click="addDelivery()" class="btn addtext">添加邮寄信息</div>
                        <div ng-show="isAddUser" ng-click="addDeliveryNo()" class="btn savetext">取消</div>
                        <div ng-show="isAddUser" ng-click="saveItemF()" class="btn savetext">保存</div>
                    </div>
                    <div class="field">
                        <table class="ui yellow celled striped table" style="min-width: 200px !important;">
                            <thead>
                                <tr>
                                    <th>收件人</th>
                                    <th style="width:15%">手机号</th>
                                    <th>运单号</th>
                                    <th>快递公司</th>
                                    <th>邮寄时间</th>
                                    <th style="width:25%">收件地址</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="vfineUser in deliveryArr">
                                    <td>{{vfineUser.recipients}}</td>
                                    <td>{{vfineUser.phone}}</td>
                                    <td ng-attr-title="{{vfineUser.address}}">{{vfineUser.delivery_num}}</td>
                                    <td>{{vfineUser.send_way}}</td>
                                    <td>{{vfineUser.send_time|limitTo:10}}</td>
                                    <td ng-attr-title="{{vfineUser.address}}">{{vfineUser.address}}</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="field" style="margin-top: 30px;" ng-show="isAddUser">
                        <div class="ui form">
                            <table class="ui celled table">
                                <thead>
                                    <tr>
                                        <th colspan="3">新增退款协议邮寄信息</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>
                                            <div class="inline field required">
                                                <label>收件人</label>
                                                <input type="text" maxlength="20" style="width: 160px;margin-left: 1em;" name="delivery[recipients]" ng-model="delivery.recipients" placeholder="收件人">
                                            </div>
                                        </td>
                                        <td>
                                            <div class="inline field required">
                                                <label>手机号</label>
                                                <input type="text" style="width: 160px;margin-left: 1em;" ng-model="delivery.phone" name="delivery[delivery_phone]" placeholder="手机号">
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <div class="inline field required">
                                                <label>收件地址</label>
                                                <input type="text" style="width: 450px;" name="delivery[address]" ng-model="delivery.address" placeholder="收件地址">
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <div class="field">
                                                <label>邮寄备注说明</label>
                                                <textarea rows="2" type="text" name="delivery[delivery_remark]" ng-model="delivery.remark"></textarea>
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="actions" style="text-align: center;">
        <button class="ui green button positive">确认</button>
        <button class="ui grey button negative">取消</button>
    </div>
</div>
<!--审核成功之后的编辑-->

<!--财务拒绝之后的编辑-->
<div class="ui editC modal">
    <i class="close icon"></i>
    <div class="header_h4">退款申请信息编辑</div>
    <div class="content">
        <form action="#" class="popup edit form">
            <div class="ui form">
                <div class="fields">
                    <div class="five wide field">
                        <label class="label_fl">客户姓名：</label>
                        <div style="padding-left: 1.5em;padding-top: 0.5em;">{{edit_data.customer_name}}</div>
                    </div>
                    <div class="five wide field">
                        <label class="label_fl">客户电话：</label>
                        <div style="padding-left: 1.5em;padding-top: 0.5em;">{{edit_data.customer_phone}}</div>
                    </div>
                    <div class="six wide field required">
                        <label class="label_fl">退款原因</label>
                        <select class="more ui dropdown fl" style="width: 160px;" ng-model="edit_data.reason" name="edit_data[reason]" ng-options="item.name for item in pageOption.reasons">
                        </select>
                    </div>
                </div>
                <div class="fields">
                    <div class="ten wide field required">
                        <label class="label_fl">外部投诉</label>
                        <select class="more ui dropdown fl" style="width:160px" ng-model="edit_data.waibu_tousu" name="edit_data[waibu]" ng-options="item.name for item in pageOption.waibu">
                        </select>
                    </div>
                </div>
                <div class="sixteen wide field">
                    <label class="label_fl">退款备注说明</label>
                    <textarea rows="2" type="text" ng-model="edit_data.remark"></textarea>
                </div>
                <div class="ui segment" style="padding-bottom: 20px;" ng-if="refundArr&&refundArr.length>0">
                    <div class="field">
                        <label>客户流水退款信息</label>
                    </div>
                    <table class="ui yellow striped celled table" style="min-width:400px;">
                        <thead>
                            <tr>
                                <th style="width:12%">付款流水号</th>
                                <th style="width:12%">付款时间</th>
                                <th style="width:12%">业务人员</th>
                                <th style="width:12%">业务经理</th>
                                <th style="width:12%">所属团队</th>
                                <th style="width:12%;text-align: right;margin-right:1em;">付款金额</th>
                                <th style="width:14%;text-align: right;margin-right:1em;">历史退款</th>
                                <th style="width:14%;text-align: right;margin-right:1em;">本次退款金额</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr ng-repeat="vitem in refundArr ">
                                <td>{{::vitem.pay_id}}</td>
                                <td ng-attr-title="{{::vitem.pay_time|limitTo:10}}">{{::vitem.pay_time|limitTo:10}}</td>
                                <td ng-attr-title="{{::vitem.sales_name}}">{{::vitem.sales_name}}</td>
                                <td ng-attr-title="{{::vitem.manager_name}}">{{::vitem.manager_name}}</td>
                                <td ng-attr-title="{{::vitem.company_name}}">{{::vitem.company_name}}</td>
                                <td ng-attr-title="{{::vitem.pay_mount|number:2}}" style="text-align: right;margin-right:1em;">{{::vitem.pay_mount|number:2}}</td>
                                <td ng-attr-title="{{::vitem.pay_refund_mount|number:2}}" style="text-align: right;margin-right:1em;">{{::vitem.pay_refund_mount|number:2}}</td>
                                <td>
                                    <div>
                                        <input type="text" num-format placeholder="退款金额" ng-model="vitem.refund_mount" ng-blur="changeRefundOfUpDate($index)">
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <div class="ui yellow message" ng-if=" !usercontracts||usercontracts.length==0 ">
                        该客户暂时没有流水记录!
                    </div>
                    <div class="ui yellow message" ng-if="refundArr.length > 0">
                        您选中了{{refundArr.length}}条流水，退款总额{{refund_mount|number: 2}}元。
                    </div>
                </div>
                <div class="ui">
                    <div class="field" style="margin-top: 2em;">
                        <label>客户退款财务信息</label>
                    </div>
                    <div class="fields">
                        <div class="five wide field required">
                            <label class="label_fl">开户姓名</label>
                            <input type="text" style="width: 160px;" name="edit_data[payee_name]" ng-model="edit_data.payee_name" placeholder="开户姓名">
                        </div>
                        <div class="five wide field required">
                            <label class="label_fl">财务账号</label>
                            <input type="text" style="width: 160px;" ng-model="edit_data.payee_account" name="edit_data[payee_account]" placeholder="支付账号">
                        </div>
                        <div class="six wide field required">
                            <label class="label_fl">开户行信息</label>
                            <input type="text" style="width: 160px;" ng-model="edit_data.payee_way" name="edit_data[payee_way]" placeholder="开户银行名称">
                        </div>
                    </div>
                </div>
                <div class="ui" style="margin-top: 2em;">
                    <div class="field">
                        <label>邮寄回收状态</label>
                    </div>
                    <div class="fields">
                        <div class="five wide field required">
                            <label class="label_fl">合同状态</label>
                            <select class="more ui dropdown fl" ng-model="edit_data.contract_recycle" name="edit_data[contract_status]" style="width: 160px;">
                            <option value="">合同状态</option>
                            <option value="0" >没有签订合同</option>
                            <option value="1">签订合同没有收回</option>
                            <option value="2">合同已经收回</option>
                        </select>
                        </div>
                        <div class="five wide field required">
                            <label class="label_fl">发票状态</label>
                            <select class="more ui dropdown fl" ng-model="edit_data.invoice_recycle" name="edit_data[invoice_status]" style="width: 160px;">
                            <option value="">合同状态</option>
                            <option value="0" >没有开发票</option>
                            <option value="1">发票没有收回</option>
                            <option value="2">发票已经收回</option>
                        </select>
                        </div>
                        <div class="six wide field required">
                            <label class="label_fl">退款协议</label>
                            <select class="more ui dropdown fl" ng-model="edit_data.sign_status" name="edit_data[sign_status]" style="width: 160px;">
                            <option value="">退款协议</option>
                            <option value="0" >未处理</option>
                            <option value="3">签订完成</option>
                        </select>
                        </div>
                    </div>
                </div>
                <div class="ui" style="margin-top: 2em;">
                    <div class="field">
                        <label>退款协议邮寄信息</label>
                    </div>
                    <div class="field">
                        <table class="ui yellow celled striped table" style="min-width: 200px !important;">
                            <thead>
                                <tr>
                                    <th>收件人</th>
                                    <th style="width:15%">手机号</th>
                                    <th>运单号</th>
                                    <th>快递公司</th>
                                    <th>邮寄时间</th>
                                    <th style="width:25%">收件地址</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="vfineUser in deliveryArr">
                                    <td>{{vfineUser.recipients}}</td>
                                    <td>{{vfineUser.phone}}</td>
                                    <td ng-attr-title="{{vfineUser.address}}">{{vfineUser.delivery_num}}</td>
                                    <td>{{vfineUser.send_way}}</td>
                                    <td>{{vfineUser.send_time|limitTo:10}}</td>
                                    <td ng-attr-title="{{vfineUser.address}}">{{vfineUser.address}}</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="actions" style="text-align: center;">
        <button class="ui green button positive">确认</button>
        <button class="ui grey button negative">取消</button>
    </div>
</div>
<!--财务拒绝之后的编辑-->

<!--财务拒绝之后的审核-->
<div class="ui confirmC modal">
    <i class="close icon"></i>
    <div class="header_h4">退款申请信息审核</div>
    <div class="content">
        <form action="#" class="popup edit form">
            <div class="ui form">
                <div class="fields">
                    <div class="five wide field">
                        <label class="label_fl">客户姓名：</label>
                        <div style="padding-left: 1.5em;padding-top: 0.5em;">{{edit_data.customer_name}}</div>
                    </div>
                    <div class="five wide field">
                        <label class="label_fl">客户电话：</label>
                        <div style="padding-left: 1.5em;padding-top: 0.5em;">{{edit_data.customer_phone}}</div>
                    </div>
                    <div class="six wide field required">
                        <label class="label_fl">退款原因</label>
                        <select disabled class="more ui dropdown fl" style="width: 160px;" ng-model="edit_data.reason" name="edit_data[reason]" ng-options="item.name for item in pageOption.reasons">
                        </select>
                    </div>
                </div>
                <div class="fields">
                    <div class="ten wide field required">
                        <label class="label_fl">外部投诉</label>
                        <select disabled class="more ui dropdown fl" style="width:160px" ng-model="edit_data.waibu_tousu" name="edit_data[waibu]" ng-options="item.name for item in pageOption.waibu">
                        </select>
                    </div>
                </div>
                <div class="sixteen wide field">
                    <label class="label_fl">退款备注说明</label>
                    <textarea rows="2" type="text" ng-model="edit_data.remark"></textarea>
                </div>
                <div class="ui segment" style="padding-bottom: 20px;" ng-if="refundArr&&refundArr.length>0">
                    <div class="field">
                        <label>客户流水退款信息</label>
                    </div>
                    <table class="ui yellow striped celled table" style="min-width:400px;">
                        <thead>
                            <tr>
                                <th style="width:12%">付款流水号</th>
                                <th style="width:12%">付款时间</th>
                                <th style="width:12%">业务人员</th>
                                <th style="width:12%">业务经理</th>
                                <th style="width:12%">所属团队</th>
                                <th style="width:12%;text-align: right;margin-right:1em;">付款金额</th>
                                <th style="width:14%;text-align: right;margin-right:1em;">历史退款</th>
                                <th style="width:14%;text-align: right;margin-right:1em;">本次退款金额</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr ng-repeat="vitem in refundArr ">
                                <td>{{::vitem.pay_id}}</td>
                                <td ng-attr-title="{{::vitem.pay_time|limitTo:10}}">{{::vitem.pay_time|limitTo:10}}</td>
                                <td ng-attr-title="{{::vitem.sales_name}}">{{::vitem.sales_name}}</td>
                                <td ng-attr-title="{{::vitem.manager_name}}">{{::vitem.manager_name}}</td>
                                <td ng-attr-title="{{::vitem.company_name}}">{{::vitem.company_name}}</td>
                                <td ng-attr-title="{{::vitem.pay_mount|number:2}}" style="text-align: right;margin-right:1em;">{{::vitem.pay_mount|number:2}}</td>
                                <td ng-attr-title="{{::vitem.pay_refund_mount|number:2}}" style="text-align: right;margin-right:1em;">{{::vitem.pay_refund_mount|number:2}}</td>
                                <td>
                                    <div>
                                        <input type="text" num-format readonly placeholder="退款金额" ng-model="vitem.refund_mount">
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <div class="ui yellow message" ng-if=" !usercontracts||usercontracts.length==0 ">
                        该客户暂时没有流水记录!
                    </div>
                    <div class="ui yellow message" ng-if="refundArr.length > 0">
                        您选中了{{refundArr.length}}条流水，退款总额{{refund_mount|number: 2}}元。
                    </div>
                </div>
                <div class="ui">
                    <div class="field" style="margin-top: 2em;">
                        <label>客户退款财务信息</label>
                    </div>
                    <div class="fields">
                        <div class="five wide field required">
                            <label class="label_fl">开户姓名</label>
                            <input type="text" style="width: 160px;" readonly maxlength="20" name="edit_data[payee_name]" ng-model="edit_data.payee_name" placeholder="开户姓名">
                        </div>
                        <div class="five wide field required">
                            <label class="label_fl">财务账号</label>
                            <input type="text" style="width: 160px;" readonly ng-model="edit_data.payee_account" name="edit_data[payee_account]" minlength="3" placeholder="支付账号">
                        </div>
                        <div class="six wide field required">
                            <label class="label_fl">开户行信息</label>
                            <input type="text" style="width: 160px;" readonly ng-model="edit_data.payee_way" name="edit_data[payee_way]" placeholder="开户银行名称">
                        </div>
                    </div>
                </div>
                <div class="ui" style="margin-top: 2em;">
                    <div class="field">
                        <label>邮寄回收状态</label>
                    </div>
                    <div class="fields">
                        <div class="five wide field required">
                            <label class="label_fl">合同状态</label>
                            <select disabled class="more ui dropdown fl" ng-model="edit_data.contract_recycle" name="edit_data[contract_status]" style="width: 160px;">
                            <option value="">合同状态</option>
                            <option value="0" >没有签订合同</option>
                            <option value="1">签订合同没有收回</option>
                            <option value="2">合同已经收回</option>
                        </select>
                        </div>
                        <div class="five wide field required">
                            <label class="label_fl">发票状态</label>
                            <select disabled class="more ui dropdown fl" ng-model="edit_data.invoice_recycle" name="edit_data[invoice_status]" style="width: 160px;">
                            <option value="">合同状态</option>
                            <option value="0" >没有开发票</option>
                            <option value="1">发票没有收回</option>
                            <option value="2">发票已经收回</option>
                        </select>
                        </div>
                        <div class="six wide field required">
                            <label class="label_fl">退款协议</label>
                            <select disabled class="more ui dropdown fl" ng-model="edit_data.sign_status" name="edit_data[sign_status]" style="width: 160px;">
                            <option value="">退款协议</option>
                            <option value="0" >未处理</option>
                            <option value="3">签订完成</option>
                        </select>
                        </div>
                    </div>
                </div>
                <div class="ui" style="margin-top: 2em;">
                    <div class="field">
                        <label>退款协议邮寄信息</label>
                    </div>
                    <div class="field">
                        <table class="ui yellow celled striped table" style="min-width: 200px !important;">
                            <thead>
                                <tr>
                                    <th>收件人</th>
                                    <th style="width:15%">手机号</th>
                                    <th>运单号</th>
                                    <th>快递公司</th>
                                    <th>邮寄时间</th>
                                    <th style="width:25%">收件地址</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="vfineUser in deliveryArr">
                                    <td>{{vfineUser.recipients}}</td>
                                    <td>{{vfineUser.phone}}</td>
                                    <td ng-attr-title="{{vfineUser.address}}">{{vfineUser.delivery_num}}</td>
                                    <td>{{vfineUser.send_way}}</td>
                                    <td>{{vfineUser.send_time|limitTo:10}}</td>
                                    <td ng-attr-title="{{vfineUser.address}}">{{vfineUser.address}}</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="actions" style="text-align: center;">
        <button class="ui green button positive" style="width: 105px;">审核通过</button>
        <button class="ui grey button negative" style="width: 105px;">拒绝通过</button>
    </div>
</div>
<!--财务拒绝之后的审核-->

<!-- 退款查看 -->
<div class="ui view modal">
    <i class="close icon"></i>
    <div class="header_h4">退款信息查看</div>
    <div class="content">
        <form action="#" class="popup confirm form">
            <div class="ui form">
                <div class="fields">
                    <div class="five wide field">
                        <label class="label_fl">客户姓名：</label>
                        <div style="padding-left: 1.5em;padding-top: 0.5em;">{{edit_data.customer_name}}</div>
                    </div>
                    <div class="five wide field">
                        <label class="label_fl">客户电话：</label>
                        <div style="padding-left: 1.5em;padding-top: 0.5em;">{{edit_data.customer_phone}}</div>
                    </div>
                    <div class="six wide field required">
                        <label class="label_fl">退款原因</label>
                        <select disabled class="more ui dropdown fl" style="width: 160px;" ng-model="edit_data.reason" name="edit_data[reason]" ng-options="item.name for item in pageOption.reasons">
                        </select>
                    </div>
                </div>
                <div class="fields">
                    <div class="ten wide field required">
                        <label class="label_fl">外部投诉</label>
                        <select disabled class="more ui dropdown fl" style="width:160px" ng-model="edit_data.waibu_tousu" name="edit_data[waibu]" ng-options="item.name for item in pageOption.waibu">
                        </select>
                    </div>
                </div>
                <div class="sixteen wide field">
                    <label class="label_fl">退款备注说明</label>
                    <textarea rows="2" type="text" readonly ng-model="edit_data.remark"></textarea>
                </div>
                <div class="ui segment" style="padding-bottom: 20px;" ng-if="refundArr&&refundArr.length>0">
                    <div class="field">
                        <label>客户流水退款信息</label>
                    </div>
                    <table class="ui yellow striped celled table" style="min-width:400px;">
                        <thead>
                            <tr>
                                <th style="width:12%">付款流水号</th>
                                <th style="width:12%">付款时间</th>
                                <th style="width:12%">业务人员</th>
                                <th style="width:12%">业务经理</th>
                                <th style="width:12%">所属团队</th>
                                <th style="width:12%;text-align: right;margin-right:1em;">付款金额</th>
                                <th style="width:14%;text-align: right;margin-right:1em;">历史退款</th>
                                <th style="width:14%;text-align: right;margin-right:1em;">本次退款金额</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr ng-repeat="vitem in refundArr ">
                                <td>{{::vitem.pay_id}}</td>
                                <td ng-attr-title="{{::vitem.pay_time|limitTo:10}}">{{::vitem.pay_time|limitTo:10}}</td>
                                <td ng-attr-title="{{::vitem.sales_name}}">{{::vitem.sales_name}}</td>
                                <td ng-attr-title="{{::vitem.manager_name}}">{{::vitem.manager_name}}</td>
                                <td ng-attr-title="{{::vitem.company_name}}">{{::vitem.company_name}}</td>
                                <td ng-attr-title="{{::vitem.pay_mount|number:2}}" style="text-align: right;margin-right:1em;">{{::vitem.pay_mount|number:2}}</td>
                                <td ng-attr-title="{{::vitem.pay_refund_mount|number:2}}" style="text-align: right;margin-right:1em;">{{::vitem.pay_refund_mount|number:2}}</td>
                                <td>
                                    <div>
                                        <input type="text" num-format placeholder="退款金额" readonly ng-model="vitem.refund_mount">
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <div class="ui yellow message" ng-if="!refundArr||refundArr.length==0">
                        该客户暂时没有流水记录!
                    </div>
                    <div class="ui yellow message" ng-if="refundArr.length > 0">
                        您选中了{{refundArr.length}}条流水，退款总额{{refund_mount|number: 2}}元。
                    </div>
                </div>
                <div class="ui">
                    <div class="field" style="margin-top: 2em;">
                        <label>客户退款财务信息</label>
                    </div>
                    <div class="fields">
                        <div class="five wide field required">
                            <label class="label_fl">开户姓名</label>
                            <input type="text" readonly style="width: 160px;" maxlength="20" name="edit_data[payee_name]" ng-model="edit_data.payee_name" placeholder="开户姓名">
                        </div>
                        <div class="five wide field required">
                            <label class="label_fl">财务账号</label>
                            <input type="text" readonly style="width: 160px;" ng-model="edit_data.payee_account" name="edit_data[payee_account]" minlength="3" placeholder="支付账号">
                        </div>
                        <div class="six wide field required">
                            <label class="label_fl">开户行信息</label>
                            <input type="text" readonly style="width: 160px;" ng-model="edit_data.payee_way" name="edit_data[payee_way]" placeholder="开户银行名称">
                        </div>
                    </div>
                </div>
                <div class="ui" style="margin-top: 2em;">
                    <div class="field">
                        <label>邮寄回收状态</label>
                    </div>
                    <div class="fields">
                        <div class="five wide field required">
                            <label class="label_fl">合同状态</label>
                            <select disabled class="more ui dropdown fl" ng-model="edit_data.contract_recycle" name="edit_data[contract_status]" style="width: 160px;">
                            <option value="">合同状态</option>
                            <option value="0" >没有签订合同</option>
                            <option value="1">签订合同没有收回</option>
                            <option value="2">合同已经收回</option>
                        </select>
                        </div>
                        <div class="five wide field required">
                            <label class="label_fl">发票状态</label>
                            <select disabled class="more ui dropdown fl" ng-model="edit_data.invoice_recycle" name="edit_data[invoice_status]" style="width: 160px;">
                            <option value="">合同状态</option>
                            <option value="0" >没有开发票</option>
                            <option value="1">发票没有收回</option>
                            <option value="2">发票已经收回</option>
                        </select>
                        </div>
                        <div class="six wide field required">
                            <label class="label_fl">退款协议</label>
                            <select disabled class="more ui dropdown fl" ng-model="edit_data.sign_status" name="edit_data[sign_status]" style="width: 160px;">
                            <option value="">退款协议</option>
                            <option value="0" >未处理</option>
                            <option value="3">签订完成</option>
                        </select>
                        </div>
                    </div>
                </div>
                <div class="ui" style="margin-top: 2em;">
                    <div class="field">
                        <label>退款协议邮寄信息</label>
                    </div>
                    <div class="field">
                        <table class="ui yellow celled striped table" style="min-width: 200px !important;">
                            <thead>
                                <tr>
                                    <th>收件人</th>
                                    <th style="width:15%">手机号</th>
                                    <th>运单号</th>
                                    <th>快递公司</th>
                                    <th>邮寄时间</th>
                                    <th style="width:25%">收件地址</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="vfineUser in deliveryArr">
                                    <td>{{vfineUser.recipients}}</td>
                                    <td>{{vfineUser.phone}}</td>
                                    <td ng-attr-title="{{vfineUser.address}}">{{vfineUser.delivery_num}}</td>
                                    <td>{{vfineUser.send_way}}</td>
                                    <td>{{vfineUser.send_time|limitTo:10}}</td>
                                    <td ng-attr-title="{{vfineUser.address}}">{{vfineUser.address}}</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="actions center" style="text-align: center;">
        <button class="ui green button positive">关闭</button>
    </div>
</div>
<!-- 退款查看-->

<!-- Excel导出 -->
<div class="ui export modal">
    <div class="ui header">
        退款数据导出
    </div>
    <div class="content">
        <div class="ui form" ng-show="!export.down_path">
            <div class="fields">
                <div class="field">
                    <label>开始时间</label>
                    <input type="text" ng-model="export.param.start_time" datetimepicker format="YYYY-MM-DD" id="export_start_time">
                </div>
                <div class="field">
                    <label>结束时间</label>
                    <input type="text" ng-model="export.param.end_time" datetimepicker format="YYYY-MM-DD" id="export_end_time">
                </div>
            </div>
        </div>
        <div class="ui icon message" ng-show="export.errMsg">
            <i class="red  warning sign icon"></i>
            <div class="content">
                <div class="header">发生错误</div>
                <p>{{::export.errMsg}}</p>
            </div>
        </div>
    </div>
    <div class="actions" style="text-align: center;">
        <button class="ui green button positive">确认</button>
        <button class="ui grey button negative">取消</button>
    </div>
</div>
<!-- Excel导出 -->

<!--添加成功-->
<div class="ui modal modal1" style="text-align: center;">
    <div class="header center aligned">提示</div>
    <div class="content center aligned">
        <i class="huge green check circle outline icon"></i>
        <p style="padding-top: 15px;">添加成功</p>
    </div>
</div>

<!--添加失败-->
<div class="ui modal modal2" style="text-align: center;">
    <div class="header center aligned">提示</div>
    <div class="content center aligned">
        <i class="huge red remove circle outline icon"></i>
        <p style="padding-top: 15px;">添加失败</p>
    </div>
</div>

<!--编辑成功-->
<div class="ui modal modal4" style="text-align: center;">
    <div class="header center aligned">提示</div>
    <div class="content center aligned">
        <i class="huge green check circle outline icon"></i>
        <p style="padding-top: 15px;">{{msg}}</p>
    </div>
</div>
<!--编辑失败-->
<div class="ui modal modal5" style="text-align: center;">
    <div class="header center aligned">提示</div>
    <div class="content center aligned">
        <i class="huge red remove circle outline icon"></i>
        <p style="padding-top: 15px;">{{msg}}</p>
    </div>
</div>

<script type="text/javascript">
    //登记所有需要blur验证的hidden input，振东和张叶商量放在公共js中供大家调用
    //hiddenID: hidden input的id
    //visibleID: hidden input对应的可视input id，通常由输入组件运行时动态创建。如ConMsg动态生成ConMsg_value
    function registerHiddenBlur(hiddenID, visibleID) {
        $('#' + visibleID).blur(function() {
            //延时触发blur，目的是让hidden input先于blur被赋值
            setTimeout(function() {
                $('#' + hiddenID).trigger('blur');
            }, 100);
        });
    }

    $(function() {
        $('.add-rating').rating({
            onRate: function(v) {
                $("input[name='add_data[level]']").val(v).trigger('input');
            }
        });
        $('.ui.dropdown').dropdown();
        $("#nav li").click(function() {
            $(this).addClass('selected').siblings().removeClass('selected');
        });

        //新增退款控制表单验证
        $('.popup.add.form').form({
            inline: true,
            on: 'blur',
            fields: {
                userphone: {
                    identifier: 'add_data[userphone]',
                    rules: [{
                        type: 'empty',
                        prompt: '该姓名客户不存在'
                    }]
                },
                phone: {
                    identifier: 'add_data[phone]',
                    rules: [{
                        type: 'empty',
                        prompt: '联系方式不能为空'
                    }, {
                        type: 'exactLength[11]',
                        prompt: '请输入正确的手机号格式'
                    }]
                },
                reason: {
                    identifier: 'add_data[reason]',
                    rules: [{
                        type: 'empty',
                        prompt: '客户退款原因不能为空'
                    }]
                },
                waibu_tousu: {
                    identifier: 'add_data[waibu]',
                    rules: [{
                        type: 'empty',
                        prompt: '外部投诉状态不能为空'
                    }]
                },
                payee_name: {
                    identifier: 'add_data[payee_name]',
                    rules: [{
                        type: 'empty',
                        prompt: '客户银行开户姓名不能空'
                    }, {
                        type: 'maxLength[20]',
                        prompt: '客户银行开户姓名不能超过20位'
                    }]
                },
                payee_account: {
                    identifier: 'add_data[payee_account]',
                    rules: [{
                        type: 'empty',
                        prompt: '客户退款账号不能为空'
                    }, {
                        type: 'minLength[3]',
                        prompt: '客户退款账号至少3位'
                    }]
                },
                payee_way: {
                    identifier: 'add_data[payee_way]',
                    rules: [{
                        type: 'empty',
                        prompt: '客户退款开户行信息不能为空'
                    }]
                },
                contract_status: {
                    identifier: 'add_data[contract_status]',
                    rules: [{
                        type: 'empty',
                        prompt: '合同状态不能空'
                    }]
                },
                invoice_status: {
                    identifier: 'add_data[invoice_status]',
                    rules: [{
                        type: 'empty',
                        prompt: '客户发票状态不能为空'
                    }]
                },
                complain_status: {
                    identifier: 'add_data[complain_status]',
                    rules: [{
                        type: 'empty',
                        prompt: '客户投诉状态不能空'
                    }]
                },
                sign_status: {
                    identifier: 'add_data[sign_status]',
                    rules: [{
                        type: 'empty',
                        prompt: '退款协议签订状态不能空'
                    }]
                }
            }
        });

        /*邮寄添加*/
        $('.popup.delivery1.form').form({
            inline: true,
            on: 'blur',
            fields: {
                recipients: {
                    identifier: 'delivery[recipients]',
                    rules: [{
                        type: 'empty',
                    }]
                },
                delivery_phone: {
                    identifier: 'delivery[delivery_phone]',
                    rules: [{
                        type: 'empty',
                    }, {
                        type: 'exactLength[11]',
                    }]
                },
                address: {
                    identifier: 'delivery[address]',
                    rules: [{
                        type: 'empty',
                    }]
                }
            }
        });

        /*邮寄编辑*/
        $('.popup.delivery2.form').form({
            inline: true,
            on: 'blur',
            fields: {
                recipients: {
                    identifier: 'delivery[recipients]',
                    rules: [{
                        type: 'empty',
                    }]
                },
                delivery_phone: {
                    identifier: 'delivery[delivery_phone]',
                    rules: [{
                        type: 'empty',
                    }, {
                        type: 'exactLength[11]',
                    }]
                },
                address: {
                    identifier: 'delivery[address]',
                    rules: [{
                        type: 'empty',
                    }]
                }
            }
        });

        /*邮寄编辑*/
        $('.popup.deliveryF.form').form({
            inline: true,
            on: 'blur',
            fields: {
                recipients: {
                    identifier: 'delivery[recipients]',
                    rules: [{
                        type: 'empty',
                    }]
                },
                delivery_phone: {
                    identifier: 'delivery[delivery_phone]',
                    rules: [{
                        type: 'empty',
                    }, {
                        type: 'exactLength[11]',
                    }]
                },
                address: {
                    identifier: 'delivery[address]',
                    rules: [{
                        type: 'empty',
                    }]
                }
            }

        });

        /*邮寄审核成功*/
        $('.popup.delivery.form').form({
            recipients: {
                identifier: 'delivery[recipients]',
                rules: [{
                    type: 'empty',
                    // prompt: '收件人姓名不能为空'
                }]
            },
            delivery_phone: {
                identifier: 'delivery[delivery_phone]',
                rules: [{
                    type: 'empty',
                    // prompt: '联系方式不能为空'
                }, {
                    type: 'exactLength[11]',
                    // prompt: '请输入正确格式的联系方式'
                }]
            },
            address: {
                identifier: 'delivery[address]',
                rules: [{
                    type: 'empty',
                    // prompt: '收件地址不能为空'
                }]
            }

        });

        /*邮寄财务拒绝*/
        $('.popup.deliveryCJ.form').form({
            recipients: {
                identifier: 'delivery[recipients]',
                rules: [{
                    type: 'empty',
                    // prompt: '收件人姓名不能为空'
                }]
            },
            delivery_phone: {
                identifier: 'delivery[delivery_phone]',
                rules: [{
                    type: 'empty',
                    // prompt: '联系方式不能为空'
                }, {
                    type: 'exactLength[11]',
                    // prompt: '请输入正确格式的联系方式'
                }]
            },
            address: {
                identifier: 'delivery[address]',
                rules: [{
                    type: 'empty',
                    // prompt: '收件地址不能为空'
                }]
            },
            sign_status: {
                identifier: 'add_data[sign_status]',
                rules: [{
                    type: 'empty',
                    // prompt: '退款协议签订状态不能空'
                }]
            }

        });

        //表单验证
        $('.popup.edit.form').form({
            inline: true,
            on: 'blur',
            fields: {
                pay_mount: {
                    identifier: 'edit_data[pay_mount]',
                    rules: [{
                        type: 'empty',
                        prompt: '客户退款金额不能空'
                    }, {
                        type: 'regExp[/^[0-9]+?(\.[0-9]+)$/]',
                        prompt: '客户退款金额格式错误'
                    }]
                },
                sales_name: {
                    identifier: 'edit_data[sales_name]',
                    rules: [{
                        type: 'empty',
                        prompt: '业务人员不能为空'
                    }]
                },
                manager_name: {
                    identifier: 'edit_data[manager_name]',
                    rules: [{
                        type: 'empty',
                        prompt: '业务人员的经理不能为空'
                    }]
                },
                sales_subcompany: {
                    identifier: 'edit_data[sales_company]',
                    rules: [{
                        type: 'empty',
                        prompt: '所属分公司不能为空'
                    }]
                },
                reason: {
                    identifier: 'edit_data[reason]',
                    rules: [{
                        type: 'empty',
                        prompt: '客户退款原因不能为空'
                    }]
                },
                payee_name: {
                    identifier: 'edit_data[payee_name]',
                    rules: [{
                        type: 'empty',
                        prompt: '客户银行开户姓名不能空'
                    }, {
                        type: 'maxLength[20]',
                        prompt: '客户银行开户姓名不能超过20位'
                    }]
                },
                payee_account: {
                    identifier: 'edit_data[payee_account]',
                    rules: [{
                        type: 'empty',
                        prompt: '客户退款账号不能为空'
                    }, {
                        type: 'minLength[3]',
                        prompt: '客户退款账号至少3位'
                    }]
                },
                payee_way: {
                    identifier: 'edit_data[payee_way]',
                    rules: [{
                        type: 'empty',
                        prompt: '客户退款开户行信息不能为空'
                    }]
                },
                contract_status: {
                    identifier: 'edit_data[contract_status]',
                    rules: [{
                        type: 'empty',
                        prompt: '合同状态不能空'
                    }]
                },
                invoice_status: {
                    identifier: 'edit_data[invoice_status]',
                    rules: [{
                        type: 'empty',
                        prompt: '客户发票状态不能为空'
                    }]
                },
                complain_status: {
                    identifier: 'edit_data[complain_status]',
                    rules: [{
                        type: 'empty',
                        prompt: '客户投诉状态不能空'
                    }]
                },
                sign_status: {
                    identifier: 'edit_data[sign_status]',
                    rules: [{
                        type: 'empty',
                        prompt: '退款协议签订状态不能空'
                    }]
                }
            }
        });

        //反馈确认表单验证
        $('.ui.form.confirm').form({
            inline: true,
            on: 'blur',
            fields: {
                confirm: {
                    identifier: 'confirm[confirm]',
                    rules: [{
                        type: 'empty',
                        prompt: '确认情况不能为空'
                    }]
                }
            }
        });

        //风险追踪确认
        $('.track.form').form({
            inline: true,
            on: 'blur',
            fields: {
                reply_confirm: {
                    identifier: 'track[reply_confirm]',
                    rules: [{
                        type: 'empty',
                        prompt: '确认结果不能为空'
                    }]
                },
                replay: {
                    identifier: 'track[replay]',
                    rules: [{
                        type: 'empty',
                        prompt: '相关人员反馈不能为空'
                    }]
                },
            }
        });

        //延时登记所有需要blur验证的hidden input（可视的input开始时未生成）
        setTimeout(function() {
            /*add*/
            registerHiddenBlur('add_data_userphone1', 'add_data_userphone2_value');
            /*update*/
            registerHiddenBlur('update_description3', 'update_description4');
            registerHiddenBlur('update_reply_action3', 'update_reply_action4');
            // registerHiddenBlur('add_user', 'ConMsgUser_value');
        }, 500);

    });
</script>


<!--弹框结束-->